package com.xyyl.patient.common.easemob;

import java.io.InputStream;
import java.util.Properties;

/**
 * @projectName:xyyl-patient-web
 * @ClassName: EasemobProperties
 * @Description: EasemobProperties
 * @author chens
 * @date 2017年11月24日
 *
 */
public class EasemobProperties {

	public static String getProps(String key) {
		Properties props = new Properties();
		try {
			InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream("easemob.properties");
			props.load(in);
			in.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return props.getProperty(key);
	}

}
